from rest_framework import serializers
from task.models import CommandHistory


class CmdHistorySerializer(serializers.ModelSerializer):
    full_status = serializers.ReadOnlyField(source='get_status_display')

    class Meta:
        model = CommandHistory
        fields = '__all__'
